package com.bsb.biz.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.bsb.base.mapper.BsbFirmProductMapper;
import com.bsb.base.model.BsbFirmProduct;
import com.bsb.base.model.BsbFirmProductExample;

@Service
public class BsbFirmProductService{
	
	@Resource
	private BsbFirmProductMapper bsbFirmProductMapper;
	
	public void addBsbFirmProduct(BsbFirmProduct bsbFirmProduct) {
		bsbFirmProductMapper.insertSelective(bsbFirmProduct);
	}
	
	public void delBsbFirmProductByUuid(String uuid) {
		bsbFirmProductMapper.deleteByPrimaryKey(uuid);
	}
	
	public void updateBsbFirmProduct(BsbFirmProduct bsbFirmProduct) {
		bsbFirmProductMapper.updateByPrimaryKeySelective(bsbFirmProduct);
	}
	
	public BsbFirmProduct getBsbFirmProductByUuid(String uuid) {
		return bsbFirmProductMapper.selectByPrimaryKey(uuid);
	}
	
	public List<BsbFirmProduct> getPageBsbFirmProduct(BsbFirmProductExample bsbFirmProductExample) {
		return bsbFirmProductMapper.selectPage(bsbFirmProductExample);
	}
	
	public int countBsbFirmProduct(BsbFirmProductExample bsbFirmProductExample) {
		return bsbFirmProductMapper.countByExample(bsbFirmProductExample);
	}
}
